package cn.edu.scau.cmi.duanzhenghong.Singleton;

public class Chairman {

	private static Chairman chairman;
	private String name;
	private Chairman(String name) {
		this.name=name;
	}
	
	public static Chairman getInstance(String name) {
		if (chairman==null) {
			chairman =new Chairman(name);
			return chairman;
		}
		else
			return chairman;
	}
	public String getname() {
		return name;
	}
	public void setname(String newname) {
		this.name=newname;
	}
}
